
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlackHtml5.WebSite.Code.Data
{
    public class SessionManager:NFinal.Session
    {
		private SessionInfo _sessionInfo;
		public SessionManager(string session_id,NFinal.ICache cache):base(session_id, cache)
        {
            this.sessionId = session_id;
            _sessionInfo = new SessionInfo();
        }
        public int userId
        {
            get 
			{
				_sessionInfo.userId = this.Get<int>("WebSite_userId");
                return _sessionInfo.userId;
            }
            set 
			{
				_sessionInfo.userId = value;
                this.Set<int>("WebSite_userId", _sessionInfo.userId);
            }
        }
    }
}